package com.dews.train.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dews.common.utils.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


/**
 * 专业培养方案对象 dews_training_program
 *
 * @author qingfeng
 * @date 2024-11-30
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("dews_training_program")
public class TrainingProgram {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学院")
    @TableField("dep_id")
    private Long depId;

    @ApiModelProperty("专业")
    @TableField("subject_id")
    private Integer subjectId;

    @ApiModelProperty("培养方案标题")
    @TableField("training_program_title")
    private String trainingProgramTitle;

    @ApiModelProperty("年级")
    @TableField("grade")
    private String grade;

    @ApiModelProperty("培养方案内容")
    @TableField("content")
    private String content;

    @ApiModelProperty("毕业总学分")
    @TableField("total_credits_graduation")
    private Integer totalCreditsGraduation;

    @ApiModelProperty("毕业总学绩分：学分乘以绩点")
    @TableField("total_academic_performance_score")
    private Integer totalAcademicPerformanceScore;

    @ApiModelProperty("课外学分")
    @TableField("extracurricular_credits")
    private Integer extracurricularCredits;

    @ApiModelProperty("是否无处分：0：不做要求，1：毕业时无任何处分（或处分已解除）")
    @TableField("is_disciplinary_action")
    private Integer isDisciplinaryAction;

    @ApiModelProperty("是否启用：0-未启用  1-启用")
    @TableField("is_enable")
    private Integer isEnable;

    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS)
    @JsonFormat(pattern = DateUtils.YYYY_MM_DD_HH_MM_SS, timezone = DateUtils.GMT)
    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

}
